html,
body {
    height: 100%;
    margin: 0px;
    background: #fafafa;
    overflow: hidden;
}

/* 容器样式 */
.process-manager {
    font-family: 'Arial', sans-serif;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    margin: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 父节点样式 */
.parent-node {
    /* background: #e3f2fd; */
    /* border-left: 4px solid #2196f3; */
    margin-bottom: 15px;
    border-radius: 4px;
    /* overflow: hidden; */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */

    flex: 0 0 170px;
    max-width: 170px;
    margin-right: 0px;
    margin-bottom: 0;
    position: relative;
}

.parent-node .jt {
    width: 32px;
    height: 32px;
    background: url("../img/jt.png");
    background-size: 100%;
    position: absolute;
    top: 34px;
    right: -50px;
}

.parent-node .jc {
    position: absolute;
    top: 6px;
    right: 10px;
}

.parent-node:last-child .jt {
    display: none !important;
}

.parent-header {
    padding: 12px 10px;
    display: flex;
    align-items: center;
    cursor: move;
    height: 70px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 1px 5px #0003, 0 2px 2px #00000024, 0 3px 1px -2px #0000001f;
    margin: 0 10px;
    font-size: 18px;
    z-index: 10;
    opacity: 0.85;
}

.parent-title {
    flex: 1;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 限制最多显示3行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 显示省略号 */
    max-height: 4.2em;
    /* 根据行高设置，约为三行高度 */
    line-height: 1.4em;
    /* 设置适当的行高 */
    word-break: break-word;
}

/* 父节点卡片主题 */
.parent-color0 .parent-header,
.parent-active.parent-color0 .child-container::before,
.parent-active.parent-color0 .child-container::after {
    /* background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);//#eab308;//#475569;
            color: #0d47a1; */
    background: #E6A23C;
    color: #fff;
}

.parent-color1 .parent-header,
.parent-active.parent-color1 .child-container::before,
.parent-active.parent-color1 .child-container::after {
    background: #909399;
    color: #fff;
}

.parent-color2 .parent-header,
.parent-active.parent-color2 .child-container::before,
.parent-active.parent-color2 .child-container::after {
    background: #409EFF;
    color: #fff;
}

.parent-color3 .parent-header,
.parent-active.parent-color3 .child-container::before,
.parent-active.parent-color3 .child-container::after {
    background: #67C23A;
    color: #fff;
}

.parent-color4 .parent-header,
.parent-active.parent-color4 .child-container::before,
.parent-active.parent-color4 .child-container::after {
    background: #F56C6C;
    color: #fff;
}

/* .parent-color0 .parent-header,
        .parent-active.parent-color0 .child-container::before,
        .parent-active.parent-color0 .child-container::after {
            background: #eebe77;
            color: #fff;
        }
        .parent-color1 .parent-header,
        .parent-active.parent-color1 .child-container::before,
        .parent-active.parent-color1 .child-container::after {
            background: #909399;
            color: #fff;
        }

        .parent-color2 .parent-header,
        .parent-active.parent-color2 .child-container::before,
        .parent-active.parent-color2 .child-container::after {
            background: #79bbff;
            color: #fff;
        }

        .parent-color3 .parent-header,
        .parent-active.parent-color3 .child-container::before,
        .parent-active.parent-color3 .child-container::after {
            background: #95d475;
            color: #fff;
        }

        .parent-color4 .parent-header,
        .parent-active.parent-color4 .child-container::before,
        .parent-active.parent-color4 .child-container::after {
            background: #f89898;
            color: #fff;
        } */

.parent-active .parent-header,
.parent-header:hover {
    animation: fadeInScale 0.5s ease-out forwards;
    font-weight: bold;
    box-shadow: 0px 3px 7px #0003, 5px 9px 2px #00000024, 12px 1px 7px -2px #0000001f;
    opacity: 1;
}

/* 子节点继承 */
.child-jc {
    position: absolute;
    top: 2px;
    right: 5px;
}

/* 子节点容器 */
.child-container {
    position: relative;
    /* 保留现有样式 */
    display: flex;
    flex-wrap: wrap;
    /* overflow: auto; */
    gap: 5px;
    /* max-height: calc(100% - 60px); */
    padding: 18px 15px 10px 20px;
    /* border-top: 1px solid #e0e0e0; */
}

/* 添加竖线 */
.child-container::before {
    content: '';
    position: absolute;
    left: 50%;
    /* 修改为50%使其位于容器中间 */
    top: 0;
    bottom: -10px;
    width: 4px;
    background-color: #b4b4b4;
    z-index: 0;
    transform: translateX(-50%);
    /* 确保线条居中对齐 */
}

/* 添加末尾实心圆 */
.child-container::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    /* 位置调整 */
    width: 10px;
    height: 10px;
    background-color: #b4b4b4;
    border-radius: 50%;
    /* 创建圆形 */
    z-index: 1;
    transform: translateX(-50%);
    /* 确保圆居中对齐 */
}

/* 定义淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        /* 初始透明度为0 */
        transform: translateY(-20px);
        /* 初始位置稍微向上移动 */
    }

    to {
        opacity: 1;
        /* 最终透明度为1，即完全不透明 */
        transform: translateY(0);
        /* 最终位置在原位 */
    }
}

@keyframes fadeInDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
        display: none;
    }
}

@keyframes fadeInScale {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

/* 子节点显示 */
.child-con-show {
    display: flex;
    animation: fadeInUp 0.3s ease-out forwards;
}

/* 子节点显示 */
.child-con-hide {
    animation: fadeInDown 0.3s ease-out forwards;
}

/* 子节点 确认节点 */
.child-confirm-node {
    border-radius: 30px !important;
}

.child-confirm-icon {
    position: absolute;
    right: 13px;
    bottom: 7px;

    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.child-confirm-icon.icon-D {
    background-color: #98bde6;
}
.child-confirm-icon.icon-F {
    background-color: #daf05d;
}
.child-confirm-icon.icon-M {
    background-color: #97f4b3;
}

/* 子节点样式 */
.child-node {
    position: relative;
    /* 保留现有样式 */
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin: 10px 0;
    border-radius: 6px;
    /* display: flex; */
    align-items: center;
    border-left: 5px solid #95d475;
    transition: all 0.3s ease;
    flex: 0 0 110px;
    max-width: 100px;
    height: 64px;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
}

.child-node.child-color0 {
    border-left-color: #eebe77;
}

.child-node.child-color1 {
    border-left-color: #b1b3b8;
}

.child-node.child-color2 {
    border-left-color: #79bbff;
}

.child-node.child-color3 {
    border-left-color: #95d475;
}

.child-node.child-color4 {
    border-left-color: #f89898;
}

.child-node.child-color0:hover {
    background: #fdf6ec;
}

.child-node.child-color1:hover {
    background: #e9e9eb;
}

.child-node.child-color2:hover {
    background: #ecf5ff;
}

.child-node.child-color3:hover {
    background: #f0f9eb;
}

.child-node.child-color4:hover {
    background: #fef0f0;
}

.child-node:hover {
    background: #f0f9eb;
    transform: translateX(3px);
    cursor: pointer;
}

.child-title {
    flex: 1;
    color: #666;
    font-size: 14px;
    height: 40px;
    font-weight: bold;
    display: flex;
    /*父元素设置flex属性*/
    justify-content: center;
    /*水平主轴居中*/
    align-items: center;
    /*垂直交叉轴居中*/
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 限制最多显示2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 显示省略号 */
    max-height: 2.8em;
    /* 根据行高设置，约为两行高度 */
    line-height: 1.4em;
    /* 设置适当的行高 */
    word-break: break-word;
    /* 允许单词内换行 */
    margin-bottom: 5px;
    /* 与下面的内容保持一定间距 */
}

.node-type {
    font-size: 12px;
    color: #757575;
    margin-right: 10px;
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    left: 10px;
    bottom: 6px;
}

/* 按钮样式 */
.node-actions {
    display: flex;
    gap: 5px;
    position: absolute;
    right: 5px;
    top: -22px;
    display: none;
    padding-bottom: 2px;
    width: 90%;
    text-align: right;
}

.child-node:hover .node-actions,
.parent-header:hover .node-actions {
    display: block;
}

.btn {
    border: none;
    display: inline-block;
    width: 16px;
    height: 16px;
    padding: 2px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    background: #ccc;
    text-align: center;
}

.btn-add {
    color: white;
}

.btn-edit {
    color: white;
}

.btn-delete {
    background: #f44336;
    color: white;
}


.node-actions .btn-add:hover,
.node-actions .btn-edit:hover {
    background-color: #b1b3b8;
}
.node-actions .btn-delete:hover {
    background-color: #F56C6C;
}

/* 拖拽占位符 */
.ui-sortable-placeholder {
    background: #e1f5fe;
    border: 1px dashed #0288d1;
    visibility: visible !important;
}

.processTitBox {
    width: 100%;
    height: 40px;
    text-align: right;
    position: relative;
}

/* 添加父节点按钮 */
.add-parent-btn {
    padding: 6px 10px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    /* font-weight: bold; */
}

/* 美化滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #c0c4cc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #909399;
}

::-webkit-scrollbar-track {
    background-color: #f5f7fa;
}

iframe {
    scrollbar-width: thin;
    scrollbar-color: #c0c4cc #f5f7fa;
}

/* Firefox 滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: #c0c4cc #f5f7fa;
}

body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

body::-webkit-scrollbar-thumb {
    background-color: #c0c4cc;
    border-radius: 3px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #909399;
}

body::-webkit-scrollbar-track {
    background-color: #f5f7fa;
}

.processTreeBox {
    width: calc(100% - 20px);
    height: calc(100% - 70px);
    background-image: linear-gradient(90deg, rgba(100, 116, 139, .12) 1%, rgba(0, 0, 0, 0) 6%), linear-gradient(rgba(100, 116, 139, .12) 1%, rgba(0, 0, 0, 0) 6%);
    background-size: 28px 28px;
    overflow: auto;
    /* padding: 30px 10px; */
    padding: 0 10px 30px;
}

#processTree {
    /* height: 500px; */
    display: flex;
    flex-wrap: nowrap;
    gap: 50px;
    padding-bottom: 15px;
    margin: 30px 10px;
}

.titlePanel {
    cursor: default;
    /* color: #555; */
    color: #387deb;
    font-weight: bold;
    height: 40px;
    padding-left: 40px;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 20px;
}

.titlePanel>span {
    position: absolute;
    top: -1px;
    left: 9px;
    font-size: 28px;
    color: #387deb;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/* 开关样式 */
.cw-switch {
    display: inline-block;
    width: 40px;
    height: 20px;
    line-height: 20px;
    border-radius: 24px;
    vertical-align: middle;
    border: 1px solid #ccc;
    background-color: #ccc;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all .2s ease-in-out
}

.cw-switch-inner {
    color: #fff;
    font-size: 12px;
    position: absolute;
    left: 22px
}

.cw-switch:after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 20px;
    background-color: #fff;
    position: absolute;
    left: 1px;
    top: 2px;
    cursor: pointer;
    transition: left .2s ease-in-out, width .2s ease-in-out
}

.cw-switch:active:after {
    width: 26px
}

.cw-switch-checked {
    border-color: #39f;
    background-color: #39f
}

.cw-switch-checked .cw-switch-inner {
    left: 8px
}

.cw-switch-checked:after {
    left: 22px
}

.cw-switch-checked:active:after {
    left: 19px
}

.cw-switch-disabled {
    cursor: not-allowed;
    background: #f3f3f3;
    border-color: #f3f3f3
}

.cw-switch-disabled:after {
    background: #ccc;
    cursor: not-allowed
}

.cw-switch-disabled .cw-switch-inner {
    color: #ccc
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    border-radius: 4px;
    width: 400px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 12px 20px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #303133;
}

.modal-close {
    font-size: 20px;
    color: #909399;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.g_flex {
    display: flex;
    align-items: center;
}

.form-group.g_flex label {
    font-weight: bold;
    margin-right: 6px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #606266;
    margin-bottom: 0;
}

.form-group.g_flex .modal-input {
    flex: 1;
    height: 36px;
    line-height: 36px;
}

.modal-input {
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    box-sizing: border-box;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    color: #606266;
    font-size: 14px;
}

.modal-input:focus {
    outline: none;
    border-color: #409eff;
}

.modal-footer {
    padding: 10px 20px 20px;
    text-align: right;
}

.modal-btn {
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #dcdfe6;
    background: #fff;
    margin-left: 10px;
}

.modal-cancel-btn {
    color: #606266;
}

.modal-cancel-btn:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
}

.modal-confirm-btn {
    color: #fff;
    background-color: #409eff;
    border-color: #409eff;
}

.modal-confirm-btn:hover {
    background: #66b1ff;
    border-color: #66b1ff;
}

.legendItem {
    width: 400px;
    position: absolute;
    top: 12px;
    left: 50%;
    margin-left: -200px;
    font-size: 12px;
}

.legendItem span {
    margin-right: 6px;
}

.legendItem i {
    width: 28px;
    height: 14px;
    display: inline-block;
    border-radius: 4px;
    margin-right: 4px;
    vertical-align: text-bottom;
}


/* ================ */
/* 子节点悬浮框样式 */
.child-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    padding: 12px;
    z-index: 1000;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    width: 180px;
    /* 使用固定宽度而不是 max-width */
    display: none;
    color: #606266;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    /* 确保内边距计入总宽度 */

    /* CSS变量用于箭头定位 */
    --arrow-left: auto;
    --arrow-right: auto;
    --arrow-top: auto;
    --arrow-bottom: auto;
}

.child-tooltip-title {
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ebeef5;
    color: #303133;
    word-wrap: break-word;
}

.child-tooltip-content p {
    margin: 5px 0;
    color: #909296;
}

.child-tooltip-content span.label {
    color: #3c3d3f;
    margin-right: 5px;
}

/* 给悬浮框添加小三角箭头 */
.child-tooltip:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.child-tooltip.position-right:after {
    border-right-color: #fff;
    left: -16px;
    top: 50%;
    margin-top: -8px;
}

.child-tooltip.position-left:after {
    border-left-color: #fff;
    right: -16px;
    top: 50%;
    margin-top: -8px;
}

.child-tooltip.position-top:after {
    border-top-color: #fff;
    bottom: -16px;
    left: 50%;
    margin-left: -8px;
}

.child-tooltip.position-bottom:after {
    border-bottom-color: #fff;
    top: -16px;
    left: 50%;
    margin-left: -8px;
}

/* 为具有悬浮框的子节点添加指示器 */
.child-node {
    position: relative;
}

.child-node:hover {
    cursor: pointer;
}

.child-node.has-tooltip:after {
    content: 'ℹ';
    position: absolute;
    top: 5px;
    right: 5px;
    color: #909399;
    font-size: 12px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: #f2f6fc;
}



/* 添加到你的CSS文件中 */


.child-tooltip:after {
    left: var(--arrow-left);
    right: var(--arrow-right);
    top: var(--arrow-top);
    bottom: var(--arrow-bottom);
}

.child-tooltip.position-left:after {
    border-left-color: #fff;
    --arrow-right: -16px;
    --arrow-left: auto;
    --arrow-top: 50%;
    --arrow-bottom: auto;
    margin-top: -8px;
}

.child-tooltip.position-right:after {
    border-right-color: #fff;
    --arrow-left: -16px;
    --arrow-right: auto;
    --arrow-top: 50%;
    --arrow-bottom: auto;
    margin-top: -8px;
}

/* 给悬浮框添加小三角箭头 */
.child-tooltip:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    z-index: 2;
    /* 使用CSS变量来定位 */
    left: var(--arrow-left, auto);
    right: var(--arrow-right, auto);
    top: var(--arrow-top, auto);
    bottom: var(--arrow-bottom, auto);
    transform: translateY(-50%);
}

/* 右侧悬浮框的箭头 */
.child-tooltip.position-right:after {
    border-right-color: #fff;
}

/* 左侧悬浮框的箭头 */
.child-tooltip.position-left:after {
    border-left-color: #fff;
}

/* 修改悬浮框样式使其宽度固定 */


/* 在悬浮框中的内容样式 */
.child-tooltip-content {
    word-wrap: break-word;
    /* 确保长文本自动换行 */
    overflow: hidden;
    /* 隐藏溢出内容 */
    text-overflow: ellipsis;
    /* 显示省略号 */
}

/* form 表单 input select */
select {
    /*去掉小箭头*/
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

select.form-control,
input.form-control {
    display: block;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 15px;
    font-size: 14px;
    line-height: 40px;
    color: #606266;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    box-sizing: border-box;

}

select.form-control:focus,
input.form-control:focus {
    outline: none;
    border-color: #409eff;
}

select.form-control.error,
input.form-control.error {
    border-color: #dc3545 !important;

}

select.form-control~label,
input.form-control~label {
    color: #f56c6c;
    font-size: 12px;
    text-align: left;
}

/* 父节点吸顶 */
.parent-header {
    position: sticky;
    top: 30px;
    z-index: 100;
}

/* 父节点下面固定辅助区域 */
.processHeaderFixed {
    z-index: 90;
    position: fixed;
    right: 40px;
    left: 40px;
    height: 154px;
    padding: 0 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, .1);
    box-sizing: border-box;
    border-radius: 2px;
    display: none;
}

/* 去掉 button 按钮的 :focus-visible 样式 */
button:focus-visible {
    outline: none;
}

/* message 消息提示框 start */
/* 消息提示容器 */
.message-container {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}
/* 消息提示框 */
.message {
    background: white;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 380px;
    max-width: 500px;
    pointer-events: all;
    transition: all 0.3s ease;
    transform: translateY(-100px);
    opacity: 0;
    border-left: 4px solid;
}

.message.show {
    transform: translateY(0);
    opacity: 1;
}

.message.hide {
    transform: translateY(-100px);
    opacity: 0;
}

.message-success {
    border-left-color: #67c23a;
}

.message-warning {
    border-left-color: #e6a23c;
}

.message-error {
    border-left-color: #f56c6c;
}

.message-info {
    border-left-color: #909399;
}

.message-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.message-success .message-icon {
    color: #67c23a;
}

.message-warning .message-icon {
    color: #e6a23c;
}

.message-error .message-icon {
    color: #f56c6c;
}

.message-info .message-icon {
    color: #909399;
}

.message-content {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
}

.message-close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #c0c4cc;
    padding: 5px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.message-close:hover {
    background: #f5f5f5;
    color: #909399;
}

@media (max-width: 768px) {
    .message {
        min-width: 90%;
        max-width: 95%;
    }
}
/* message 消息提示框 end */

/* 顶部右侧区域 start */
.header-right {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
}

.header-right .icon-buttons {
    display: flex;
    /* gap: 15px; */
}

.header-right .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    color: #387deb;
    /* color: #606266; */
    font-size: 22px;
}

.header-right .icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.header-right .icon-btn.active {
    background-color: rgba(52, 152, 219, 0.3);
}
/* 顶部右侧区域 end */

/* 自定义右侧抽屉弹窗 - 查看详情 start */
#drawer-dialog {
    --drawer-width: 90%;
    --drawer-position-initial: -90%;/* 初始位置在屏幕右侧外部 */
    --drawer-position-open: 0%;

    position: fixed;
    display: none;
    top: 0;
    right: var(--drawer-position-initial);
    width: var(--drawer-width);
    min-width: 600px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-sizing: border-box;
}
#drawer-dialog.open {
    right: var(--drawer-position-open);
}
#drawer-dialog.closing {
    right: var(--drawer-position-initial);
}
#drawer-dialog .drawer-header {
    padding: 8px 10px 8px 20px;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#drawer-dialog .drawer-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}
#drawer-dialog .drawer-close:hover {
    background: rgba(0, 0, 0, 0.1);
}
#drawer-dialog .drawer-content {
    height: calc(100% - 48px); /*header高度变化时这里同步修改*/
    overflow: hidden;
    /* border: 1px solid red; */
}
#drawer-dialog .drawer-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
}
#drawer-overlay.show {
    opacity: 1;
}
#drawer-overlay.hiding {
    opacity: 0;
}
/* 自定义右侧抽屉弹窗 - 查看详情 end */